package com.common.model;

/**
 * All rights Reserved, Designed By www.51wph.com
 *
 * @version V1.0
 * @ProjectName: wph-platform
 * @Package com.wph.common.consts
 * @Description:全局配置类/系统常用常量
 * @author: ZhangWen
 * @date: 2019-05-28 17:31
 * @Copyright: 2019 www.51wph.com Inc. All rights reserved.
 *             注意：本内容仅限于科技有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
public class Global {

	/** pc-background token有效期为2小时 */
	public static final int PC_BACKGROUND_TOKEN_EXPIRE = 60 * 60 * 2;

	/** app token有效期为30天 */
	public static final int APP_TOKEN_EXPIRE = 30 * 24 * 60 * 60;

	/** pc token有效期为2小时 */
	public static final int PC_TOKEN_EXPIRE = 2 * 60 * 60;

	/** 通用有效期为2小时 */
	public static final int COMMON_EXPIRE = 2 * 60 * 60;

	/** API调用token有效时间 */
	public static final int API_EXPIRE = 120 * 60;

	/** 显示/隐藏 */
	public static final int SHOW = 1;
	public static final int HIDE = 0;
	public static final int MINUS_ONE = -1;

	/** 是/否 */
	public static final int YES = 1;
	public static final int NO = 0;
	public static final String BE = "是";
	public static final String NAY = "否";

	/** 对/错 */
	public static final boolean TRUE = true;
	public static final boolean FALSE = false;

	/** 字符 */
	public static final String CODING_GBK = "GBK";
	public static final String CODING_UTF8 = "UTF-8";

	/** 消息强弱提醒 强提醒:Y,否则:N */
	public static final String Y = "Y";
	public static final String N = "N";

	/** 初始金额 */
	public static final Double AMOUNT = 0.0;

	/** 初始数值 */
	public static final int NUMERICAL_ZERO = 0;
	public static final int NUMERICAL_ONE = 1;
	public static final int NUMERICAL_TWO = 2;
	public static final int NUMERICAL_THREE = 3;

	/** pid等于0的 */
	public static final String PID = "0";

	/** or */
	public static final String OR = "OR";

	/** and */
	public static final String AND = "AND";

	/** ok */
	public static final String OK = "OK";

	/** redis用户信息前缀 */
	public static final String REDIS_USER_PREFIX = "userInfo:";

	/** redis企业信息前缀 */
	public static final String REDIS_ENTERPRISE_PREFIX = "enterpriseInfo:";

	/** redis用户信息前缀 */
	public static final String REDIS_SYS_MENU_PREFIX = "sysMenu:";

	/** redis用户车辆gps信息 */
	public static final String REDIS_CACHE_GPS_CAR_PREFIX = "cacheGpsCar:";

	/** redis运营活动奖品前缀 */
	public static final String REDIS_ACTIVITY_PRIZE_PREFIX = "activityPrize:";

	/** redis用户运营活动抽奖信息前缀 */
	public static final String ACTIVITY_JOIN = "activityJoin:";

	/** redis用户运营活动信息前缀 */
	public static final String ACTIVITY = "activity:";

	/** 用户专场编号 */
	public static final String PHONE = "400-030-5677";

	/** 系统初始密码 */
	public static final String PASSWORD = "123456";

	/** 逗号 */
	public static final String COMMA = ",";

	/** 点 */
	public static final String DOT = ".";

	/** 冒号 */
	public static final String COLON = ":";

	/** 下划线拼接 */
	public static final char UNDERLINE = '_';

	/** 空字符串 */
	public static final String EMPTY_STRING = "";

	/** 等号 **/
	public static final String EQUAL_SIGN = "=";

	/** 美元符号 **/
	public static final String DOLLAR = "$";

	/** +符号 **/
	public static final String PLUS = "+";

	/** 下划线拼接 */
	public static final String BRACKET = "()";
	public static final String BRACKET_LEFT = "(";
	public static final String BRACKET_RIGHT = ")";

	/** 大括号 */
	public static final String BIG_BRACKETS = "{}";
	public static final String BIG_BRACKETS_LEFT = "{";
	public static final String BIG_BRACKETS_RIGHT = "}";

	/** 星号拼接 */
	public static final String ASTERISK1 = "*";
	public static final String ASTERISK2 = "**";

	/** 括号 */
	public static final String BRACKETS = "[]";
	public static final String BRACKETS_LEFT = "[";
	public static final String BRACKETS_RIGHT = "]";

	/** 排序 */
	public static final String ASC = "asc";
	public static final String DESC = "desc";

	/** 请求成功值 */
	public static final int SUCCEED = 200;

	/** 短信请求返回参数名 */
	public static final String SUCCESS = "success";

	/** pageNum当前页数/pageSize每页显示条数 */
	public static final String PAGE_NUM = "pageNum";
	public static final String PAGE_SIZE = "pageSize";

	/** 可调用EncryUtil.generatorPriKey()方法生成 */
	public static final String PRI_KEY = "127f0400ff8a8b7a20d91dfc60a39725";

	/** APP */
	public static final String APP = "APP";

	/** API */
	public static final String API = "API";

	/** 请求头token */
	public static final String ACCESS_TOKEN = "Access-Token";

	/** 客户终端类型 */
	public static final String CLIENT_TYPE = "Client-Type";

	/** 系统类型 */
	public static final String SYSTEM_TYPE = "System-Type";

	/** 请求代理 */
	public static final String USER_AGENT = "user-agent";

	/** 请求格式 */
	public static final String CONTENT_TYPE_AJ = "application/json";

	/** 请求方法 */
	public static final String METHOD_POST = "POST";
	public static final String METHOD_GET = "GET";

	/** 错误图片 */
	public static final String WRONG_USER_HEAD = "data:,";

	/** 运输订单号前缀 */
	public static final String TRAN_NUM_PREFIX = "LTO";

	/** 委托单单号前缀 */
	public static final String ENTR_NUM_PREFIX = "LD";

	/** 车辆运单单号前缀 */
	public static final String TASK_NUM_PREFIX = "LTL";

	/** 装货地点 */
	public static final Integer ADDRESS_LOAD = 1;

	/** 卸货地点 */
	public static final Integer ADDRESS_UNLOAD = 2;

	/** 时间周期-天/周/月/年 */
	public static final String CYCLE_DAY = "天";
	public static final String CYCLE_WEEK = "周";
	public static final String CYCLE_MONTH = "月";
	public static final String CYCLE_YEAR = "年";

}
